package cn.edu.sdjzu.xg11.service;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.sdjzu.xg11.dao.TitleDao;
import cn.edu.sdjzu.xg11.domain.Title;

@Service
public class TitleService {
	@Autowired
	private TitleDao titleDao;

	public Collection<Title> getTitles() {
		return titleDao.getTitles();
	}
	
	public Title getTitle(Integer id){
		return titleDao.getTitle(id);
	}
}
